import request from '@/utils/request'

// 查询航班列表
export function listFlight(query) {
  return request({
    url: '/ground/flight/list',
    method: 'get',
    params: query
  })
}

// 查询航班详情
export function getFlight(flightNo) {
  return request({
    url: '/ground/flight/' + flightNo,
    method: 'get'
  })
}

// 修改航班信息
export function updateFlight(data) {
  return request({
    url: '/ground/flight/edit',
    method: 'put',
    data: data
  })
}

